﻿namespace NoIdeaIoc;
/// <summary>
/// Ioc注入键名
/// <para>用于标记构造函数的字段的注入键名</para>
/// </summary>
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public class IocKeyAttribute : FromKeyedServicesAttribute
{
    /// <summary>
    /// 枚举显示名称
    /// <para>用于标记构造函数的字段的注入键名</para>
    /// </summary>
    /// <param name="keyName"></param>
    public IocKeyAttribute(string keyName) : base(keyName)
    {
    }
}